﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="A_KhachHang.aspx.cs" Inherits="admin_A_KhachHang" Title="Untitled Page" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title"; align="center">
            Danh Sách Khách Hàng
        </div>
      
        <div style="width:100%;">
            <div style="display:table-cell; width:75%;float:left; color:ButtonText">
                Tên Khách Hàng:
                <asp:TextBox ID="txt_TenNV" runat="server" Width="122px"></asp:TextBox>
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
            </div>
            <div class="addnewrow" style="display:table-cell; width:23%;float:right;">
                    <a href="A_Themmoikhachhang.aspx">Thêm Mới Khách Hàng</a> | 
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton>
                    
            </div>        
        </div>
        <div>
            <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate >
            <table cellspacing ="1" cellpadding ="3" width ="100%" bccolor="#cccccc" border="0">
            <thead >
                <tr class ="listtableheader">
                    <th> Mã KH</th>
                    <th> Tên Khách Hàng</th>
                    <th> Mã Loại Người Dùng</th> 
                    <th> Email</th>
                    <th> Địa Chỉ</th>
                    <th >Điện Thoại</th> 
                    <th>Hình Ảnh</th>
                    <th >Giới Tính</th>
                    <th> Sửa</th>
                    <th>
                    <input id="cb_ALL" type="checkbox" onclick ="CheckAll(1);" />
                    <a href ="javascript:CheckAll(2)">Chọn hết</a>
                    </th>
                </tr>
            </thead>
            <tbody >
            </HeaderTemplate>
            <ItemTemplate >
                <tr>
                    <td><%#Eval ("MAKH")%></td>
                      <td> <%#Eval("HOTEN")%></td> 
                    <td>  
                        <asp:HyperLink ID="hyp_maquyen" runat="server">HyperLink</asp:HyperLink></td>
                    <td><%#Eval("EMAIL")%></td>
                    <td><%#Eval("MATKHAU")%></td>
                    <td><%#Eval("DIACHI")%></td>
                  <td>
                    <asp:Image ID="img_hinhanh" runat="server" />
                </td>
                    <td><%#Eval("GIOITINH")%></td>
                    <td> <asp:HyperLink ID ="hpl_edit" Text ="Edit" runat ="server" /></td>
                    <td>
                        <asp:CheckBox ID="cb_Xoa" runat ="server" />
                        <asp:HiddenField ID="hf_id" Value ='<%#Eval ("MAKH") %>'  runat ="server" />   
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>
            </FooterTemplate>
            </asp:Repeater>
            </div>
<div>
            <div style ="width :100%;">
                <cc1:PagerV2_8 ID="Pager" runat="server" />
            </div>
    </div>
    </div>
    </div>
 
    
</asp:Content>

